//
//  AbacusAppDelegate.m
//  Abacus
//
//  Created by user on 11. 1. 30..
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "AbacusAppDelegate.h"
#import "Abacus.h"

@implementation AbacusAppDelegate

@synthesize window;


#pragma mark -
#pragma mark Application lifecycle

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    
	NSLog(@"didFinishLaunchingWithOptions");
	// 상태바를 없앤다.
	[UIApplication sharedApplication].statusBarHidden = YES;
	
	// 상태바를 없앤 전체 화면의 크기를 가져온다.
	CGRect windowRect = [[UIScreen mainScreen] bounds];
	NSLog(@"window size : with:%f, height:%f", windowRect.size.width, windowRect.size.height);
	
    // Override point for customization after application launch.
    // srandom(time(0));
	
	//UIWindow *window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
	Abacus *drag = [[Abacus alloc] init];
	[window addSubview:drag.view];
	
    //[window addSubview:mainView.view];
    [window makeKeyAndVisible];
    
    return YES;
}


- (void)applicationWillResignActive:(UIApplication *)application {}

- (void)applicationDidEnterBackground:(UIApplication *)application {}

- (void)applicationWillEnterForeground:(UIApplication *)application {}

- (void)applicationDidBecomeActive:(UIApplication *)application {}

- (void)applicationWillTerminate:(UIApplication *)application {}


#pragma mark -
#pragma mark Memory management

- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application {}

- (void)dealloc {
	//[mainView release];
    [window release];
    [super dealloc];
}


@end
